Skip to content

Let champions enter the Land of Life from its entrance menu - #3927

Merged
erwan-joly merged 3 commits into
masterfrom
fix/issue-3374
Dec 1, 2026
Merged

erwan-joly merged 3 commits into
masterfrom
fix/issue-3374

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on #3895 (merged): it uses the Teleporter.MinimumHeroLevel column and the TeleporterFares table that PR added. No migration here.

What changes for the player

The Land of Life entrance menu now answers its three entry buttons:

Runner Button Champion level needed
n_run 151 Enter the Land of Life 30
n_run 152 Enter the Advanced Land of Life 60
n_run 154 Enter the Expert Land of Life 80
  • A champion at or above the level is sent to the destination recorded for that NPC under that runner. The trip is free; no button names a fare.
  • A champion below the level gets the client's ChampionLevelRequirement line and stays. A player with no champion level gets no answer, the same as the other champion menus.
  • TeleporterParser now records these three runners from a capture (n_run then at), the same way it records the other teleport menus. TeleporterFares.MinimumHeroLevel writes 30 / 60 / 80 on those rows.

Until a capture of these trips is in packet.txt, there are no rows for them, so the menu still takes nobody anywhere.

Tests

  • ChampionAreaTravelHandlerTests: 18/18 passed. The handlers, the map change mock, the teleporter rows and the monster catalog now come from the test world. New: the runner mapping for the three handlers; levels 30, 60 and 80 enter the Land of Life, the Advanced one and the Expert one; levels 29, 59 and 79 are refused with ChampionLevelRequirement.
  • TeleporterParserTests: 22/22 passed. New: the champion level for each Land of Life runner, and a captured Advanced Land of Life entry stored with level 60 and no fare.
  • dotnet build NosCore.sln: no warnings, no errors.

Manual checks (added to documentation/manual-test-plan.md)

  • Once a capture of the trip has been parsed: the Land of Life entrance (dialog 552) takes a champion of level 30 to the Land of Life, 60 to the Advanced one and 80 to the Expert one, for free. A champion below the level is told the requirement and stays.

Client check

No capture of the trip is parsed yet, so the scene adds one row by hand: an NPC with dialog 552 beside Tester on Chicken Farm Path, and a Teleporter row for it under runner 151 to map 2750 (121,122) with MinimumHeroLevel 30. Tester is level 90; the champion level changes per shot. The menu line pressed is "Enter the Land of Life (Champion Level: 30-64)", which sends n_run 151 0.

The entrance talk: Would you like to move to the Land of Life? You need to be champion level 30 to 64.

master, champion 30 this branch, champion 30 this branch, champion 29
master: nothing happens, Tester stays on Chicken Farm Path branch: Tester is in the Land of Life branch: You must be champion level 60 or above to enter this region., Tester stays
  • master: no answer to n_run 151.
  • branch, 30: at 1 2750 121 122, c_map 0 2750 1; the map box reads Land of Life.
  • branch, 29: msgi 0 2669. The client renders ChampionLevelRequirement as "You must be champion level 60 or above to enter this region.", which is wrong for the Land of Life's 30-64 range. This is the "refusal line below the range" doubt listed below, now seen in the client.

Not done

Nothing in the client data or the stored traces gives these, so they wait for a capture:

  • Landing cells for 2750 / 2751 / 2758, and for the other trips in the issue (Dragonveil, Undercity, the dimension maps, Grenigas Temple). The parser fills them once a capture is in packet.txt.
  • The upper champion level bound (64 / 82 / 90 on the buttons). Nothing shows how the menu refuses a champion above the range, and enforcing it would need a new column. Today a champion above the range can enter.
  • The refusal line below the range. This reuses ChampionLevelRequirement from the volunteers' guard. The client also has YouCannotEnterLandOfLife, LandOfLifeOnlyFamilyMember and EnterLandOfLifeQuestion, but no trace shows when each is sent.
  • The daily time allowance and n_run 153 (CheckLandOfLifeTime / RemainingLandOfLifeTime). The allowance is unknown.
  • n_run 448 (Celestial Spire Catacombs) needs a family raid capture.
  • n_run 196 is a quest button (GetQuestForTheRealmOfHeroes), not a trip.

Part of #3374

https://claude.ai/code/session_01CUfJ471RKDxg598wGdk9z8


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d96efbb and 3fe1f28.

Files selected for processing: 9

  • documentation/manual-test-plan.md
  • src/NosCore.GameObject/Messaging/Handlers/Nrun/AdvancedLandOfLifeEntryHandler.cs
  • src/NosCore.GameObject/Messaging/Handlers/Nrun/ExpertLandOfLifeEntryHandler.cs
  • src/NosCore.GameObject/Messaging/Handlers/Nrun/LandOfLifeEntryHandler.cs
  • src/NosCore.GameObject/Messaging/Handlers/Nrun/NpcTeleportHandler.cs
  • src/NosCore.Parser/Parsers/TeleporterFares.cs
  • src/NosCore.Parser/Parsers/TeleporterParser.cs
  • test/NosCore.GameObject.Tests/Messaging/Handlers/Nrun/ChampionAreaTravelHandlerTests.cs
  • test/NosCore.Parser.Tests/TeleporterParserTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Collaborator Author

This PR is blocked by #3895. The merge conflict with master is in NosCoreContextModelSnapshot.cs, in #3895's migration commit, and #3895 has the same conflict. This PR's own commit doesn't touch migrations. CI hasn't run because of the conflict. Once #3895 is rebased and its migration regenerated, I'll rebase this branch onto it.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Review: stacked on #3895, so its diff and migration include #3895's. It lands after #3895, with the migration regenerated; it also conflicts with master now.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Review: MERGE-WITH-NOTE (after #3895). Not pushed to, because it is stacked on #3895.

This PR's own commit (0a45b14) adds the three Land of Life entry handlers, the 30/60/80 champion levels in TeleporterFares, and the parser runners. No provenance, ! or BOM problems in it. The manual-test-plan entry is present.

Left:

  • Rebase onto Read teleport fares and champion level gates from the teleporter rows #3895 once it lands. The current diff carries Read teleport fares and champion level gates from the teleporter rows #3895's migration and conflicts with master.
  • ChampionAreaTravelHandlerTests.cs: the existing setup still uses new MoveToMapHandler(...) and new NpcMonsterCatalog(...). Build both from the world (World.Create<T>(), Inject the list plus UseReal) when rebasing.
  • Only the level-30 runner is exercised end to end. A handler test for 152 (level 60) and 154 (level 80) would guard the other two rows.
  • Champions above a button's range can still enter, and until a capture of the trips is parsed the menu has no rows. Both are acknowledged in the body; neither blocks merging.

Screenshots: not applicable yet, because the menu takes nobody anywhere until a capture is parsed. Once it does, capture a level-30 champion entering the Land of Life from dialog 552, and a level-29 one being refused.

🤖 Generated with Claude Code


Generated by Claude Code

erwan-joly pushed a commit that referenced this pull request Nov 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
Runners 151, 152 and 154 send a champion to the Land of Life recorded for the
NPC under that runner, once the champion level its button names is reached:
30, 60 and 80. The parser records the trips from a capture like the other
teleport menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUfJ471RKDxg598wGdk9z8
…Land of Life

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUfJ471RKDxg598wGdk9z8
A shared refusal said champion level 60 for every menu, so the Land of Life,
which asks for 30, and the Expert one, which asks for 80, named the wrong level.
The client's line that takes the level as an argument names the right one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
erwan-joly pushed a commit that referenced this pull request Dec 1, 2026
@erwan-joly

Copy link
Copy Markdown
Collaborator Author

Refusal line fixed in 3fe1f28, now rebased onto master.

The client test showed a champion-29 player refused at the Land of Life with "You must be champion level 60 or above". The refusal shared by every champion menu used the client's fixed line for 60. It now sends the line that takes the level as an argument, filled with that menu's own minimum: 30 for the Land of Life, 60 for the Advanced one and for the volunteers' guard, and 80 for the Expert one. ChampionAreaTravelHandlerTests assert the level on each refusal. The manual test plan entry gives the level too.

Same scene as before (champion level 29, entrance menu line "Enter the Land of Life"), on this branch:

branch: "You must be champion level 30 or above to enter this region.", Tester stays on Chicken Farm Path


Generated by Claude Code

@erwan-joly
erwan-joly merged commit 9fbf757 into master Dec 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants